﻿<div class="portlet light" ng-init="init()">
    <div class="portlet-title">
        <div class="caption">
            <div class="caption-subject font-green-haze bold">
                <span>角色权限</span> 
            </div>
        </div>
    </div>
    
    <div class="portlet-body">
        <form class="form-horizontal" name="permission" novalidate ng-submit-force="true" ng-submit="btnSubmit_Click(permission.$valid)">
            <div class="row" ng-repeat="module in modulePermissions">
                <div class="form-group col-xs-12">
                    <label class="col-xs-3 control-label">{{module.module}}：</label>
                    <div class="col-xs-9">
                        <div class="checkbox">
                            <label ng-repeat="permission in module.permissions"> 
                                <input type="checkbox" ng-model="permission.isSelected" ng-checked="permission.isSelected"><span class="checkbox-material"><span class="check"></span></span> {{permission.permission}}
                            </label> 
                        </div>
                    </div>
                </div>
            </div>

            <div class="row margin-top-10">
                <div class="col-sm-offset-4 col-sm-8">
                    <button type="submit" class="btn btn-primary btn-raised">保存</button>
                    <a class="btn btn-default btn-raised" ng-click="btnCancel_Click()">取消</a> 
                </div>
            </div>
        </form>
    </div>
</div>